//
//  Man.m
//  07-ARC代码编写
//
//  Created by Snow on 16/7/12.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "Man.h"

@implementation Man
- (instancetype)init
{
    self = [super init];
    if (self) {
        _objc = [NSObject new];//成员变量 能够使引用计数加一  self 代表使用setter方法
    }
    return self;
}

//ARC下缺少了if判断
- (void)setObjc:(NSObject *)objc
{
    _objc = objc;
}
- (void)setString:(NSString *)string
{
    _string = [string copy];
}
- (void)setCount:(NSInteger)count
{
    _count = count;
}
- (void)setDelegate:(id<NSObject>)delegate
{
    _delegate = delegate;
}
//ARC下可以写dealloc
- (void)dealloc
{
//不能写[super dealloc]
}

@end
